<%@ Page language="c#"  ValidateRequest="false" MaintainScrollPositionOnPostback="true" EnableViewStateMac="false" Codebehind="SearchResults.aspx.cs" MasterPageFile="~/App_MasterPages/layout.Master" AutoEventWireup="false" Inherits="mojoPortal.Web.UI.Pages.SearchResults" %>

<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">
<portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">
<mp:CornerRounderTop id="ctop1" runat="server" />
<asp:Panel ID="pnlMain" runat="server" CssClass="art-Post-inner panelwrapper searchresults" >
    <h2 class="moduletitle"><mp:SiteLabel id="SiteLabel3" runat="server" ConfigKey="SearchPageTitle" UseLabelTag="false" ></mp:SiteLabel></h2>
    <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
    <div class="modulecontent">
    <asp:Panel ID="pnlInternalSearch" runat="server" DefaultButton="btnDoSearch">
    <div id="divDelete" runat="server" visible="false" class="settingrow">
    <portal:mojoButton ID="btnRebuildSearchIndex" runat="server" />
    </div>
    <div class="settingrow searchcontrols">
        <portal:mojoHelpLink ID="MojoHelpLink1" runat="server" HelpKey="search-help" />
        <asp:TextBox ID="txtSearchInput" runat="server" Columns="50" MaxLength="255" CssClass="widetextbox searchbox"></asp:TextBox>
        <asp:DropDownList id="ddFeatureList" runat="server" CssClass="searchfeatures"></asp:DropDownList>
		<portal:mojoButton ID="btnDoSearch" runat="server" CausesValidation="false" UseSubmitBehavior="true" />
		<span class="searchduration">
			<asp:label id="lblDuration" runat="server" visible="False"></asp:label> 
			<mp:SiteLabel id="lblSeconds" runat="server" Visible="False" ConfigKey="SearchResultsSecondsLabel" UseLabelTag="false"></mp:SiteLabel>
		</span>
		<asp:label id="lblMessage" runat="server" ></asp:label> 
    </div>
    <div id="divResults" runat="server" class="settingrow searchresultsummary">
		<mp:SiteLabel id="lblReslts" runat="server" ConfigKey="SearchResultsLabel" UseLabelTag="false"></mp:SiteLabel>
		<asp:label id="lblFrom" runat="server" font-bold="True"></asp:label>-<asp:label id="lblTo" runat="server" font-bold="True"></asp:label>
		<mp:SiteLabel id="Sitelabel1" runat="server" ConfigKey="SearchResultsOfLabel" UseLabelTag="false"></mp:SiteLabel>
		<asp:label id="lblTotal" runat="server" font-bold="True"></asp:label>
		<mp:SiteLabel id="lblFor" runat="server" ConfigKey="SearchResultsForLabel" UseLabelTag="false"></mp:SiteLabel>
		<asp:label id="lblQueryText" runat="server" font-bold="True" CssClass="searchqueryterm"></asp:label>
    </div>
    <asp:Panel id="pnlSearchResults" runat="server" Visible="False" CssClass="settingrow searchresults">
    <portal:mojoCutePager ID="pgrTop" runat="server" visible="false" />
        <asp:repeater id="rptResults" runat="server" enableviewstate="False">
            <HeaderTemplate>
                    <ol class="searchresultlist">
                </HeaderTemplate>
		    <itemtemplate>
		    <li class="searchresult">
				    <h3>
		            <asp:hyperlink id="Hyperlink1" runat="server" 
					    navigateurl='<%# BuildUrl((mojoPortal.Business.WebHelpers.IndexItem)Container.DataItem) %>'>
					    <%# FormatLinkText(Eval("PageName").ToString(), Eval("ModuleTitle").ToString(), Eval("Title").ToString())  %></asp:hyperlink></h3>
                        <div class="searchresultdesc">
				    <NeatHtml:UntrustedContent ID="UntrustedContent1" runat="server" TrustedImageUrlPattern='<%# mojoPortal.Web.Framework.SecurityHelper.RegexRelativeImageUrlPatern %>' ClientScriptUrl="~/ClientScript/NeatHtml.js">
                    <%# DataBinder.Eval(Container.DataItem, "Intro").ToString() %>
                    </NeatHtml:UntrustedContent>
                    </div>
		     </li>       
		    </itemtemplate>
            <FooterTemplate>
                    </ol>
                </FooterTemplate>
	    </asp:repeater>
	    <div>&nbsp;</div>
	    <portal:mojoCutePager ID="pgrBottom" runat="server" Visible="false" /> 
    </asp:Panel>
    <asp:Panel ID="pnlNoResults" runat="server" Visible="False">
	    <asp:Label ID="lblNoResults" runat="server"></asp:Label>
    </asp:Panel>
    <div class="settingrow">
        <span id="spnAltSearchLinks" runat="server" visible="false">
            <asp:Literal ID="litAltSearchMessage" runat="server" />
            <asp:HyperLink ID="lnkBingSearch" runat="server" Visible="false" CssClass="extrasearchlink" />
            <asp:HyperLink ID="lnkGoogleSearch" runat="server" Visible="false" CssClass="extrasearchlink" />
        </span>
    </div>
    </asp:Panel>
    <asp:Panel ID="pnlGoogleSearch" runat="server" Visible="false" CssClass="gcswrap">
        <portal:GoogleCustomSearchControl ID="gcs" runat="server" Visible="false" />
    </asp:Panel>
    <asp:Panel ID="pnlBingSearch" runat="server" Visible="false" CssClass="searchresults bingresults">
        <portal:BingSearchControl ID="bingSearch" runat="server" Visible="false" />
    </asp:Panel>
    </div>
    </portal:mojoPanel>
    <div class="cleared"></div>
</asp:Panel>
<mp:CornerRounderBottom id="cbottom1" runat="server" />
</portal:mojoPanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />